import axios from "axios";
//列表
let list = (params) => axios.get('/tag/list', { params });
//创建标签
let create = (data) => axios.post('/tag/', data);
//编辑标签
let edit = (id, data) => axios.put(`/tag/${id}`, data);
//删除标签
let remove = (id) => axios.delete(`/tag/${id}`)
export default {
    list, create, edit,remove
}